# -*- coding: utf-8 -*-
"""
爱奇艺签到
Created on 20180621 10:43

@author: aubucuo
"""

import requests

s = requests.session()

u = 'http://act.vip.iqiyi.com/marketing/sign/exeSignIn.action'

p = {
     'P00001':'xxx'
     ,'platform':'xxx',
     'deviceId':'xxx',
     'version':'9.6.0',
     'lang':'zh_CN',
     'app_lm':'cn',
}

hd = {
      'Connection': 'keep-alive',
'Accept': 'application/json, text/javascript, */*; q=0.01'
,'Origin': 'http://www.iqiyi.com',
'User-Agent': 'Mozilla/5.0 (Linux; Android 7.1.1; OPPO R11s Build/NMF26X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36 IqiyiApp/iqiyi IqiyiVersion/9.6.0'
,'Referer': 'http://www.iqiyi.com/kszt_phone/signLottery.html',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'zh-CN,en-US;q=0.8',
'X-Requested-With': 'com.qiyi.video'}
r = s.get(u,headers= hd,params = p)
print r.json()

'''
{u'msg': u'\u4eca\u65e5\u5df2\u7b7e\u5230', u'code': u'Q00376', u'data': {}}
(今日已签到)
'''